package main

import (
	"rabbitmq/RabbitMQ"
	"strconv"
	"time"
	"fmt"
)

func main()  {
	one:=RabbitMQ.NewRabbitMQRouting("xu","one")
	two:=RabbitMQ.NewRabbitMQRouting("xu","two")
	for i := 0; i <= 10; i++ {
		one.PublishRouting("Hello one!" + strconv.Itoa(i))
		two.PublishRouting("Hello Two!" + strconv.Itoa(i))
		time.Sleep(1 * time.Second)
		fmt.Println(i)
	}
	
}
